using System;

namespace Behaviorize.Reporting.Model
{
	internal class Step
	{
		private OutcomeType _outcome;

		public string Text { get; set; }

		public string Outcome
		{
			get { return _outcome.ToString(); }
			set { _outcome = (OutcomeType)Enum.Parse(typeof (OutcomeType), value); }
		}

		public int FailureIndex { get; set; }

		public void SetOutcome(OutcomeType outcome)
		{
			_outcome = outcome;
		}

		public OutcomeType GetOutcome()
		{
			return _outcome;
		}
	}
}